#include "MatchManager.h"
#include "Utilities.h"
#include "OldMatch.h"
//#include "Match.h"

MatchManager::MatchManager(ServiceProvider* i_sp)
{
	m_interfaces.push_back(new OldMatch(i_sp));
	//m_interfaces.push_back(new Match(i_sp));
}

MatchManager::~MatchManager()
{
	Utilities::DeepClear(m_interfaces);
}

MatchInterface& MatchManager::GetMatchInterface(const MatchData& /*i_matchData*/) const
{
	//at the moment we support just one Match engine at time... we can adapt the MatchManager to choose according to match data the right match interface
	//at the moment we use the OldMatch engine. The Match engine is still under development
	return *m_interfaces[0];
}

